package com.atguigu.gulimail.member.service;

import com.atguigu.common.to.GiteeMemberVo;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.member.entity.MemberEntity;
import com.atguigu.gulimail.member.exception.ExistPhoneException;
import com.atguigu.gulimail.member.exception.ExistUsernameException;
import com.atguigu.gulimail.member.vo.UserRegistVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 会员
 *
 * @author fangyi
 * @email 2244210628@qq.com@gmail.com
 * @date 2022-08-10 09:21:04
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveUser(UserRegistVo userRegistVo);

    void ExistUsernameException(String username) throws ExistUsernameException;

    void ExistPhoneException(String phone) throws ExistPhoneException;

    MemberEntity GiteeSaveOrRegit(GiteeMemberVo giteeMemberVo);
}

